label: Fix markup parsing interactions
authorMatthias Clasen <mclasen@redhat.com>
Wed, 3 Mar 2021 03:30:11 +0000 (22:30 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 3 Mar 2021 04:25:01 +0000 (23:25 -0500)
commit875a92b95f12dadd618c2257057fa6622ef90fa4
treec259e004cf13bb64e777f26e8b46b36d523f7f73
parentc23848c03edfe957c87a4c145d6f073d7d43adde
label: Fix markup parsing interactions

We were not handling mnemonics vs markup right
in all cases. Rewrite the _-stripping code to
do it during the link parsing, instead of as
a separate function. This avoids the issue of
stripping _ from attribute names in markup.

Add tests.

Fixes: 3706
gtk/gtklabel.c
testsuite/gtk/label.c [new file with mode: 0644]
testsuite/gtk/meson.build